<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');
/**
 * View file: profile
 *
 * @author luubk
 * @since 10-06-2012 - 21:56:27
 */
?>
<div id="form_result"></div>
<article class="module width_full">
    <form method="POST" id="form" 
          action="<?php echo site_url("user/profile") ?>">
        <header><h3><?php echo $title ?></h3></header>
        <div class="module_content">
            <p>Tên tài khoản: <b><?php echo $item['u_name'] ?></b></p>
            <p>Đăng ký ngày: <?php echo date('d/m/Y \l\ú\c H:i:s',$item['u_created']) ?></p>
            <fieldset style="width:48%; float:right;">
                <label>Thay đổi mật khẩu</label>                
                <input type="password" style="width:92%;" name="old_pass" placeholder="Mật khẩu cũ">                
                <div class="clear"></div>
                <br/>                
                <input type="password" style="width:92%;" name="u_pass" placeholder="Mật khẩu mới">
                <div class="clear"></div>
                <br/>
                <input type="password" style="width:92%;" name="pass_conf" placeholder="Nhập lại Mật khẩu mới">                
            </fieldset>                
            <fieldset style="width:48%; float:left; margin-right: 3%;">
                <label>Email</label>
                <input type="text" style="width:92%;" 
                       value="<?php echo isset($item['u_email']) ? $item['u_email'] : '' ?>"
                       name="u_email">
            </fieldset>
            <fieldset style="width:48%; float:left;">
                <label>Số điện thoại</label>
                <input type="text" style="width:92%;" 
                       value="<?php echo isset($item['u_phone']) ? $item['u_phone'] : '' ?>"
                       name="u_phone">
            </fieldset>                        
            <div class="clear"></div>
        </div>
        <footer>
            <div class="submit_link">
                <span class="loading">&nbsp;</span>
                <input type="submit" value="Lưu lại" class="alt_btn">
                <input type="reset" value="Nhập lại">                
            </div>
        </footer>
    </form>
</article><!-- end of post new article -->
